//
//  MySaleTicketController.m
//  KuWeiPark
//
//  Created by Kevin Su on 15/4/29.
//  Copyright (c) 2015年 Clief. All rights reserved.
//

#import "MySaleTicketController.h"
#import "AppMacro.h"
#import "MySaleTicketCell.h"
#import "AppDelegate.h"

@interface MySaleTicketController ()<UITableViewDataSource, UITableViewDelegate>

@end

@implementation MySaleTicketController{
    
    NSMutableArray *ticketsArray;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.tableView.delegate = self;
    self.tableView.dataSource = self;
    self.tableView.tableFooterView = [[UITableView alloc] initWithFrame:CGRectZero];
    
    ticketsArray = [[NSMutableArray alloc] initWithArray:@[@"0", @"1", @"2", @"3"]];
}

#pragma mark - UITableView Delegate && DataSource
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    
    return ticketsArray.count;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    return 102;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    MySaleTicketCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MySaleTicketCell"];
    [cell initWithDataWithIndexPath:indexPath];
    return cell;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - IBActions

- (IBAction)back:(id)sender {
    
    [self.navigationController popViewControllerAnimated:YES];
}


@end
